package cn.s01;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.s01")
public class MainStart {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(MainStart.class);
		MyBean bean = context.getBean(MyBean.class);
		bean.hi();
	}
}
